import request from '@/utils/request'

// 查询工序分页列表
export function processGetPage(pd) {
  return request({
    url: '/wms/process/getPage',
    method: 'get',
    params: pd
  })
}

// 查询工序列表
export function listProcess(query) {
  return request({
    url: '/wms/process/getList',
    method: 'get',
    params: query
  })
}

// 查询工序详细
export function getProcess(id) {
  return request({
    url: '/wms/process/' + id,
    method: 'get'
  })
}

// 新增工序
export function addProcess(data) {
  return request({
    url: '/wms/process',
    method: 'post',
    data: data
  })
}

// 修改工序
export function editProcess(data) {
  return request({
    url: '/wms/process',
    method: 'put',
    data: data
  })
}

// 删除工序
export function delProcess(id) {
  return request({
    url: '/wms/process/' + id,
    method: 'delete'
  })
}

// 添加物品工序关联
export function addBomProcess(data) {
  return request({
    url: '/wms/process/BomProcess',
    method: 'post',
    data: data
  })
}
//查看物品工序关联
export function listBomProcess(pd) {
  return request({
    url: '/wms/process/getBomProcessList',
    method: 'get',
    params: pd
  })
}

// 修改物品工序关联
export function editBomProcess(pd) {
  return request({
    url: '/wms/process/BomProcess',
    method: 'put',
    data: pd
  })
}

// 删除工序
export function delBomProcess(pd) {
  return request({
    url: '/wms/process/BomProcess',
    method: 'delete',
    params: pd
  })
}




